﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AdminSystem.Doamins
{
    /// <summary>
    /// 养殖表
    /// </summary>
    /// 
    [Table("Culture")]
    public class Culture
    {
        [Key]
        [Display(Name = "自增标识列")]
        public int Id { get; set; }

        [Required]
        [Display(Name = "溯源批次号")]
        [Column(TypeName = "nvarchar(30)")]
        public string BatchId { get; set; }

        [Required]
        [Display(Name = "动检证")]
        [Column(TypeName = "nvarchar(200)")]
        public string? Certificate { get; set; }

        [Required]
        [Display(Name = "养殖厂编号")]
        public int FarmId { get; set; }

        [Required]
        [Display(Name = "品种")]
        [Column(TypeName = "nvarchar(30)")]
        public string? Breed { get; set; }

        [Required]
        [Display(Name = "来源")]
        [Column(TypeName = "nvarchar(30)")]
        public string? Source { get; set; }

        [Required]
        [Display(Name = "饲养天数")]
        public int Feeding { get; set; }

        [Required]
        [Display(Name = "品牌")]
        [Column(TypeName = "nvarchar(30)")]
        public string? Brand { get; set; }

        [Required]
        [Display(Name = "负责人")]
        [Column(TypeName = "nvarchar(30)")]
        public string? Principal { get; set; }

        [Required]
        [Display(Name = "出栏日期")]
        [Column(TypeName = "nvarchar(30)")]
        public DateTime? PublicationDate { get; set; }
    }
}
